Skip to content

docs(skills): objectstack-ai teaches knowledge_source as metadata; knowledge_source gets a create seed - #38053

Draft
objectstack-fleet[bot] wants to merge 8 commits into
mainfrom
claude/area-o1C-37310
Draft

objectstack-fleet[bot] wants to merge 8 commits into
mainfrom
claude/area-o1C-37310

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP

Fixes #37310

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用 AI(技能文档或 MCP 搭建)写知识源的作者,现在看到的是新写法:知识源是一份元数据,用 name、逐个列出要索引的字段、可以不写存储;MCP 新建知识源暂不提供起始模板(模板里的占位对象和字段会被当成真实值存进去),等设置页表单从作者输入构建 source 后再加。
  • 为什么做:知识库检索专题(按调用者权限过滤的知识检索)第三阶段的教学一行,替照着技能写知识源的 AI 解决"照文档写出来却被拒绝"的问题。
  • 出错会怎样:最坏是技能里某句教法不准,AI 写出的知识源在保存时被明确拒绝并给出修法;不会悄悄索引错的字段;改动可直接撤回。
  • 要你做什么:合并(技能文档是受治理面,由你亲手落地);另有一小段(发布校验的五条规则名)等对应的校验改动合并后在本分支补上。

What changes

skills/objectstack-ai/SKILL.md, § Knowledge Sources (RAG) (ADR-0161 K4, K5, K6 item 6; rows 3a and 3b as merged):

  • A source is a knowledge_source item: shipped in a package (knowledgeSources, *.knowledge-source.ts / .yml) or authored in Studio or over MCP. KnowledgeServicePlugin({ sources }) and registerSource are a second door for the same schema, and one name is one source (K4 point 3). An item mounts the knowledge service and its store with no requires: ['knowledge'] (knowledge_source: adapter becomes optional (the deployment's store), and a knowledge_source item mounts the knowledge service #37306, PR feat(knowledge): a knowledge source needs no adapter and no requires entry; it binds to the deployment's store #38026).
  • The key table is the v1 keys of K4: name, label / description, adapter (optional; omitted ⇒ the deployment's store, else the only one registered, refused naming them when several and none is the deployment's), source.kind, source.object, source.content (an explicit non-empty list; why '*' is refused: embedding is egress, K5), source.metadataFields, source.where, source.split, refresh.onRecordChange, aiExposed. The old Hygiene column's advice (meaningful text only, never ids or system fields; where keeps drafts out) now lives in the content and where rows, and says content.
  • Egress and cost (K4): the first build sends every listed field of every matching record to the embedding provider; a run-time save needs manage_knowledge_sources beside manage_metadata and passes save-time admission.
  • The retired keys by name, each with its fix, as the tombstones read: id → name, contentFields → content, embedding, vectorStore, adapterConfig, refresh.cron, and the file / http arms with their four keys; os migrate meta --from 18 for a stack, by hand for a registration in code.
  • The checked example drops adapter: 'pgvector' (the deployment's store) and its comments; it is otherwise row 3a's block.
  • split: strategy is required once split is written (recursive only when split is omitted); the adapter-list aside is gone.
  • The closing note: topK is a search_knowledge argument; rerank and hybrid weights are options of the store's plugin.
  • The routing line in skills/objectstack-mcp-build/SKILL.md ("An agent skill, tool or knowledge source | objectstack-ai") stays true: the section name is unchanged, so it is not edited.

Not in this PR, on purpose (amendments 7221575164 and 7224082428): the five os validate / publish rule ids of PR #37971 (knowledge-source-object-unknown, knowledge-source-field-unknown, knowledge-source-object-not-searchable, knowledge-source-system-object-not-ai-readable, knowledge-source-field-never-indexed). #37971 is still open, so that part follows on this branch after it lands; the PR stays draft until then.

skills/objectstack-ai/evals/skills-tools-knowledge.json. Case 3 (kb_article on PostgreSQL) and case 9 (policy_doc, markdown split) now expect name and content, and forbid a written contentFields: key; case 3 also forbids a written wildcard (['*'],, ['*'] }), embedding: and vectorStore:, and its topK token becomes topK: (the key written) because the skill now names topK as a search argument. New case 13 asks for a source that indexes "every text field" and expects an explicit list, the wildcard declined because embedding is egress, and no written contentFields: or wildcard.

packages/spec/src/kernel/metadata-create-seeds.ts: unchanged (byte-identical to main). A knowledge_source create seed was tried and withdrawn at 4c965f4a5e (comment 7229668414). Its object binding and content list sit inside source, and the Studio create flow (buildCreateModeBody / seedPlaceholderKeys in app-shell's createBody.ts) clears placeholder identity at the top level only, so it would have saved example_object / example_field into a new source: the objectui#12810 defect. No schema-valid seed avoids this, because source.object and a non-empty content (K5) are required and nested. knowledge_source stays on KNOWN_UNSEEDED, whose comment now gives the reason: a seed waits until the Studio form (#37309, row 5) builds source from the author's input. The card allows this ("or the type stays on KNOWN_UNSEEDED with the reason").

packages/runtime/src/domains/mcp-authoring.test.ts. One case beside the flow contract case, over the real protocol and the boot type registry: list_metadata_items with contract: true for knowledge_source serves no createSeed; contractPath /properties/source/properties/content serves the content rule (minItems: 1, minLength: 1, a pattern that refuses * and admits body); the served schema carries no id or contentFields tombstone; a hand-written source with one object and one field saves as a draft; the same item with content: ['*'], with an id, or with contentFields is refused 422 INVALID_METADATA, the last two naming their tombstone's prescription ("use name", "use content"); nothing else is written.

Token ratchet. The standing ruling, verbatim and untranslated: 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). Paid down first, in the same file: the wiring paragraph's package list, the old source.kind Hygiene column (folded into two rows), the example's four comments restating table rows and its refresh: { onRecordChange: true } line restating the default, and the split passage's adapter aside. The row moves 6609 → 6639, the measured remainder, pinned at the measurement.

Tests

The lock was saturated: about 70 minutes of queueing, two dogfood runs ahead. One locked round ran at 3407f7fe6e; the second round was not reached. What was not measured locally is marked below, and CI runs it.

Locked round at 3407f7f (VERDICT command-exit 0, held 365s)
  • pnpm turbo run build --filter='@objectstack/runtime^...' --concurrency=2: exit 0, Tasks: 41 successful, 41 total.
  • metadata-create-seeds.test.ts (spec): the seed pin run here (Tests 20 passed (20)) belonged to the withdrawn seed; the file is back to main's, so CI Test Core is the reading. Patch round at 4c965f4a5e: the app-shell createBody.seedPlaceholders-12810.test.ts (red at 19f3e118f2, 2 failures, unedited), the spec create-seeds test and the rewritten MCP case are NOT MEASURED locally (verify lock saturated); their inputs equal main's, so CI Test UI and Test Core on this head are the evidence. Unlocked gates at 4c965f4a5e, exit 0 each: check-skills-token-ratchet (6639/6639), check-empty-changeset, check-adr-0087-registration, check-changeset-no-major, check:nul-bytes, check:issue-citations, check:doc-authoring. The changeset no longer lists @objectstack/spec.
  • pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/mcp-authoring.test.ts: exit 1, Tests 1 failed | 73 passed (74). The failing assertion is the new case's tombstone half: it expected the served schema to carry /properties/id, and the served schema drops tombstones (see Acceptance notes). Its content-rule and seed assertions, which run before it, passed. The tombstone half is rewritten in 01cf7515c2 to assert absence plus the save refusal. NOT MEASURED locally after that rewrite (the second locked round never acquired); CI Test Core runs it.
  • pnpm --filter @objectstack/spec run check:yaml-examples: exit 0, 19 tagged YAML example(s) across 1 file(s) validate.
  • pnpm --filter @objectstack/spec run check:skill-docs: exit 0, Skill docs in sync.
  • pnpm --filter @objectstack/spec run check:skill-refs: exit 0, 10 generated files in sync with packages/spec. The generated skill references needed no regeneration: the section rewrite changes no reference input.
  • pnpm --filter @objectstack/spec typecheck: exit 0.
  • pnpm --filter @objectstack/runtime typecheck: exit 1. tsc --noEmit is clean. check:test-typecheck names 3 files this diff does not touch (boolean-written-spelling-row-scope.test.ts, meta-object-publish-column-changes.test.ts, organization-ownership-boot-guard.turso-remote.kernel.test.ts). mcp-authoring.test.ts is not among them. They are read here as the closure build's gaps (only runtime^... was built) and not as this diff's; CI TypeScript Type Check decides.
  • pnpm --filter @objectstack/spec run check:skill-examples: exit 3, PREREQUISITE NOT MET (the @objectstack/client-react dist is outside the built closure). NOT MEASURED; CI runs it.
Unlocked gates (35 derived families, each exit 0, at 3407f7f; the ratchet and nul-bytes re-run at 19f3e11)
  • node scripts/check-skills-token-ratchet.mjs: exit 0, skills/objectstack-ai/SKILL.md is 6639 tokens (ceiling 6639; headroom 0); with --self-test exit 0.
  • Exit 0 each: check-adr-0087-registration (both forms), check-changeset-no-major, check-closing-keyword-parity (both), check-declaration-mirrors (both), check-empty-changeset (both), check-issue-citations, check-self-test-wired (both), docs-audit/check-affected-docs, docs-audit/check-drift-comment, and pnpm check: agent-test-spelling, changeset-gate-self-tests, closed-ceremony-text, corpus-claim-drift, cross-package-test-inputs, doc-authoring, issue-citations, keyed-text-bounds, nul-bytes, pm-skill-id-lint, published-files, ratchet-remedy-authority, role-word, skill-compatibility, skill-frame-sync, skill-identifier-liveness, skill-links, test-source-alias, tier-file-adoption.
  • dispatch-gates --ran: 116 derived, 38 run, 0 NOT-MEASURED, 78 UNRUN. That is a declared narrowing: the lock was saturated, and CI runs the 78.
  • Local-only: check-skill-frame-freshness exit 0. check-dev-prereqs exit 1 ("69 of 110 workspace packages … not on disk"), which is the closure-only build and not a finding.
Eval runner and the ablation (`skill-evals`, claude-code-cli 2.1.332, oauth login, served claude-opus-5-5)

Cases 3, 9 and 13 of objectstack-ai/skills-tools-knowledge, both arms, one repeat each:

skill text #3 with-skill #9 with-skill #13 with-skill no-skill (all three)
this PR pass pass pass fail
main's SKILL.md (8d34c4404f, hash 88a20cb583), new cases (ablation) fail: contentFields: written; name:, content: missing fail: contentFields: written; content: missing fail: contentFields:, ['*'], and id: 'faq written; no egress reason fail

The ablation restored main's SKILL.md into the working tree only (git restore --source=8d34c4404f, git hash-object = 88a20cb583). The run ran, and then HEAD's file came back (fc845724ac both on disk and at HEAD). An earlier run of case 13 on this text failed with-skill only on the token ['*'], which a correct answer quoted while explaining the refusal. The forbidden token is now the written wildcard (['*'], / ['*'] }), and the table above is after that change.

Acceptance notes

Verification

Files to read first, by risk:

  1. skills/objectstack-ai/SKILL.md § Knowledge Sources (RAG): the adapter and content rows and the retired-keys paragraph.
  2. packages/spec/src/kernel/metadata-create-seeds.ts: the KNOWN_UNSEEDED reason for knowledge_source (no seed).
  3. packages/runtime/src/domains/mcp-authoring.test.ts: the new contract case.

Two-minute check: node scripts/check-skills-token-ratchet.mjs. Expect skills/objectstack-ai/SKILL.md is 6639 tokens (ceiling 6639; headroom 0).

Readings: skills/objectstack-ai/SKILL.md 464 → 469 lines, 26462 → 26581 bytes (6609 → 6639 priced tokens). Every published SKILL.md summed: 4936 → 4941 lines, 261366 → 261485 bytes (65342 → 65372 tokens). The eval file is 125 → 137 lines and 13611 → 15185 bytes; eval fixtures are measured, not ratcheted.


Generated by Claude Code

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs.

What this run could not see

Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 58be6770ab176bbca37fc2948113172b70c83e3c → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP

Patch round at 2026-11-27T22:50Z, head 4c965f4a5e. This answers the Test UI red at 19f3e118f2 (createBody.seedPlaceholders-12810.test.ts, 2 failures).

Cause. The knowledge_source create seed placed its object binding and its content list inside source (source.object: 'example_object', source.content: ['example_field']). The Studio create flow (buildCreateModeBody / seedPlaceholderKeys in app-shell's createBody.ts) removes placeholder identity at the top level only. It would have carried both placeholders into a new source as structural defaults, which is the defect objectui#12810 closed. No schema-valid seed can avoid this: source.object and a non-empty content (ADR-0161 K5) are required, and both are nested.

Fix: the seed is withdrawn, not the expectation. metadata-create-seeds.ts is byte-identical to main again. knowledge_source is back on KNOWN_UNSEEDED, now with this reason: a seed waits until the Studio form (row 5) builds source from the author's input. The card allowed this option ("or the type stays on KNOWN_UNSEEDED with the reason"). The UI test file is not edited; its 14-type table describes the seeds again. The MCP contract case now asserts that no createSeed is served for knowledge_source, and keeps its other checks: the content rule in the served schema, a hand-written source with one object and one field saving as a draft, and ['*'], id and contentFields each refused 422 INVALID_METADATA with the prescription. The changeset drops its @objectstack/spec entry; only a test file changed under packages/spec.

PR body is now stale in the paragraphs on the metadata-create-seeds.ts seed, the seed in the MCP case, and the @objectstack/spec changeset line. Editing it is the seat's job, per os-dev rule 3.

Readings at 4c965f4a5e. Unlocked gates, each exit 0: check-skills-token-ratchet (6639/6639), check-empty-changeset, check-adr-0087-registration, check-changeset-no-major, check:nul-bytes, check:issue-citations, check:doc-authoring. overlap-check: VERDICT overlap exit 1, the same #36158-against-main conflict in the ratchet file reported before; origin/main, #38032 and #38013 merge cleanly. NOT MEASURED: the app-shell test, the spec create-seeds test and the rewritten MCP case. Three queue rounds under slot o1C-37310-v3 sat at position 4-5 behind a dogfood run holding over 23 minutes, and the lock was never acquired. The app-shell and create-seeds inputs equal main's (git diff --quiet 8d34c4404f HEAD -- packages/spec/src/kernel/metadata-create-seeds.ts), so CI's Test UI and Test Core on this head are the evidence.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 4c965f4 · 2026-11-27T22:58Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4c965f4a5edef925ba65f597c8d5e6c3bb974ae8
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md, skills/objectstack-ai/evals/skills-tools-knowledge.json + scripts/check-skills-token-ratchet.mjs
Security-touching: yes

Read: card #37310 (body and all six comments), PR #38053 (body, file list, both comments), the net diff against merge base 8d34c4404f (six files), and the 73 check-runs on the head. origin/main is four commits past the merge base and none of them touches the skill, the ratchet script, packages/spec/src/ai or packages/services/service-knowledge, so the merge-base reading is the reading on main. Security-touching is yes because the changed hunks teach a permission (manage_knowledge_sources beside manage_metadata), the save-time admission, embedding as egress, and that credential-class and internal fields are never indexed. No security weakness was found in the change.

① Derived judgments

  • Accept-set: unchanged. Right. No file under packages/spec/src other than a test comment is in the diff. packages/spec/src/kernel/metadata-create-seeds.ts is byte-identical to the merge base (verified with git diff --quiet), and knowledge_source is still in the test's KNOWN_UNSEEDED set, now with a reason. The card allowed this option in item 3.
  • Published surface: @objectstack/skills only. Right. The SKILL.md section and the eval file ship in the skills package. The MCP test case and the spec test comment publish nothing. The ratchet script is repo tooling.
  • Gate verdicts: green. 73 check-runs, 60 success, 13 skipped (opt-in, queue, schedule, docs-build and path-filtered rows), none failed or pending. Test Core, Test UI, Lint · docs & code guards, Lint · repo & tooling gates, Check Changeset, Governed Surface Queue Guard, PR-body guards and Spec property liveness are all success. The dev's NOT MEASURED items (the rewritten MCP case, check:skill-examples) are therefore answered by CI on this head.
  • Token ratchet 6609 to 6639: right, and justified by the record it cites. The gate's own header names one recognised raise path: deletion of restatement in the same file shown in the diff, plus the standing ruling quoted in the PR body (the 2026-10-27 words or record 6513306068), moves the row by the measured remainder, pinned at the measurement. All three hold on this head. The diff deletes the wiring paragraph's package list, the Hygiene column, the example's four comments, the example's refresh line and the split passage's adapter aside. The PR body quotes the ruling verbatim and untranslated with the record id and letter B. The arithmetic reproduces: the file is 26581 bytes at the head and 26462 at the merge base; less the 27-byte stamp line that is 26554 priced bytes, and ceil(26554 / 4) is 6639, so the row sits at the measurement with headroom 0.
  • Card item 3 premise correction: right. packages/metadata-protocol/src/protocol-meta-type-schema.ts carries the spec: retiredKey() tombstones are emitted into a repeater row's items.properties, so the served schema offers six columns the parse door refuses #17502 note: the served JSON Schema publishes what an author may write, so a retiredKey() node is dropped. The served contract cannot carry a tombstone's prescription; it reaches an MCP author through the save refusal. The new MCP case asserts both halves.
  • Acceptance grep: clears. Every hit of contentFields or '*' under skills/objectstack-ai names the key as retired or refused, or is a must_not_contain token the card itself asked for. adapter: 'ragflow' has no hit.

② Semver level

'@objectstack/skills': patch matches what the diff publishes: skill text and an eval fixture, no spec, runtime or CLI code. The changeset body carries both declaration lines and they equal the PR body's.

Clause-②: no. Right: the diff narrows nothing an author could write; the refusals the skill now names landed with #37304 and #37306 and their own changesets.
Metadata-protocol: none. Right: no conversion, no retired key and no schema edit is in this diff.

③ Boundary flags

④ Design judgment

Every sentence of the rewritten section was read against packages/spec/src/ai/knowledge-source.zod.ts, packages/services/service-knowledge/src (knowledge-source-registry.ts, knowledge-source-admission.ts, knowledge-tools.ts), packages/metadata-core/src/knowledge-source-save-admission.ts, packages/core/src/capability-composition.ts, packages/core/src/capability-providers.ts, packages/spec/src/kernel/platform-capabilities.ts, the three store plugins, and content/docs on the merge base.

skills/objectstack-ai/SKILL.md

What holds, checked key by key: name (the address-grammar pattern), label and description, adapter optional with the three-step resolution and the refusal naming the registered stores, source.kind with one value, source.object, source.content (non-empty, no empty member, '*' refused by a pattern, credential-class and internal fields never indexed), metadataFields, where, split with strategy required once written and recursive when omitted, refresh.onRecordChange default true, aiExposed default true. All seven retired keys and arms match their tombstones and prescriptions, including "listing the fields a '*' stood for" and "edit a registration in code by hand". manage_knowledge_sources beside manage_metadata matches meta-item-read-gate.ts and the schema note. topK is a search_knowledge argument. The checked example parses. No refusal code is newly taught in the section, so none is wrong.

M1 (must-fix) — "An item mounts the knowledge service and its store with no requires: ['knowledge']" is false for one of the two doors the same paragraph names. Only an item the STACK SHIPS mounts the service: stackItemCapabilities reads the stack's knowledgeSources collection at boot (packages/core/src/capability-composition.ts), and nothing reads published run-time items when capabilities are composed. main's own pages say so: content/docs/ai/knowledge-rag.mdx line 17, "the token is for an app that ships none and authors its sources at run time", and content/docs/protocol/knowledge.mdx, "A deployment that holds a knowledge_source item but mounts no knowledge service says so once at boot ... nothing loads, indexes or searches them ... Such an item is one the stack does not ship — saved at run time". The sentence sits directly after "or author it in Studio or over MCP", and the card's reader is the author who builds over the MCP draft door. An agent that follows the skill in an app that ships no source saves an item that is never indexed, with no search_knowledge tool and no refusal: knowledge-source-save-admission.ts judges nothing where no knowledge service is registered, so the next sentence of the skill (the save is refused when you may not search the object) is silent there too. This is the authoring trap Prime Directive 10 names. Fix: say that a SHIPPED item mounts the service, and that an app shipping none and authoring at run time lists requires: ['knowledge']. The changeset body repeats the sentence and takes the same fix.

S1 (should-fix) — the name row and "one name is one source" teach the pre-addendum identity. On main a source's slot is (package, name) (knowledge-source-registry.ts, "Two packages' sources of one name are two sources, and so are a package's source and a package-less one"; ADR-0150 addendum of 2026-11-25), and search_knowledge lists and takes a source's FACE: NAMESPACE-NAME for a package's source, the bare name only for a package-less one (knowledge-tools.ts). The skill's first door is "Ship it in a package", and for exactly that door "what search_knowledge lists" is not the bare name. A bare name still resolves in sourceIds while it is unambiguous, which is why this is not a must-fix. Fix: the row says a package's source is listed as NAMESPACE-NAME, and the second-door sentence says a registration in code and an environment item of one name are refused as a pair, not that a name is globally one source.

S2 (should-fix) — "rerank and hybrid weights are options of the store's plugin" names options no shipped store has. KnowledgePgvectorPluginOptions is id, url, schema, poolMax, connectTimeoutMs, queryPrefix, embedder, env; a search of the src trees of knowledge-pgvector, knowledge-turso and knowledge-memory finds no rerank and no hybrid-weight option outside tests. ADR-0161 K8 item 4 draws a boundary (such settings would live in an adapter's plugin options, never in the contract or a source); the sentence the PR replaced was a boundary statement too ("belong to the adapter or application code"). The new wording states existence, and an author will go looking for the option (Prime Directive 10, declared is not delivered). Fix: keep it a boundary ("belong to the store's plugin, never a source") or add that the shipped stores expose neither.

Nits:

  • N1 — the egress paragraph says the first build "keeps the text in an index" of "every listed field". The object's display field is also read and kept as each document's title whatever content lists (servedFieldsOf, recordToDocument), and the save admission also judges that field and every field where reads. "a listed field" understates what is judged; the text sent to the embedder is as stated.
  • N2 — the trailing comment on the ratchet row still reads "-18 (was 6824), then -5 A2′ (was 6806)", which describes two earlier moves and not this one. Left as is; the block comment above carries this move.

skills/objectstack-ai/evals/skills-tools-knowledge.json

The file is well formed for the runner (must_contain_any is a supported group form, packages/qa/scenarios/src/skill-evals/cases.ts). The three rubrics test the taught facts the card asked for: name: and content: required, a written contentFields: and a written wildcard forbidden, and case 13's reason group (egress, embedding provider, refused, rejected). The reference answers agree with the schema: case 3's "may omit adapter: on PostgreSQL the deployment's store is pgvector", case 9's split: { strategy: 'markdown', maxChars: 600 }, case 13's "refused at parse". The recorded ablation (with-skill pass 3 of 3 on this text, fail 3 of 3 on main's text) meets the card's acceptance line; it is the dev's reading, not re-run here. No must-fix and no should-fix in this file.

Nits:

  • N3 — the wildcard tokens ['*'], and ['*'] } miss a double-quoted ["*"] and a single-quoted member followed by a line break. A wrong answer in either spelling passes must_not_contain. Likewise id: 'faq misses a double-quoted value.
  • N4 — case 9 requires content: but not name:, and does not forbid id:, so it does not test the id to name rename it sits beside.
  • N5 — no case exercises the mounting rule of M1 or the permission sentence. Not owed by the card; worth one assertion in the delta that fixes M1.

scripts/check-skills-token-ratchet.mjs (implementing file)

The row and its comment agree with the gate's contract sentence by sentence: deletion in the same file is shown, the ruling and record are named, the move is the measured remainder and is pinned at the measurement, and the reproduction line in the comment gives 6639. The comment's phrase "the item that mounts the service" inherits M1's wording and should follow its fix. The fixes for M1, S1 and S2 add text, so the row moves again in the delta under the same path.

Not reviewed (lane seat's ACCEPT at TIER_DEFAULT): packages/runtime/src/domains/mcp-authoring.test.ts, packages/spec/src/kernel/metadata-create-seeds.test.ts, .changeset/37310-skill-knowledge-source-metadata.md.

Implemented-by: claude/area-o1C-37310
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

L1 verdict (L1-a): REWORK at head 4c965f4a5edef925ba65f597c8d5e6c3bb974ae8 (card #37310).

Review summary

Contract review. Record 7229853573 is FAIL at the contract tier (verify-review-tier PASS). It has one must-fix and two should-fix findings. I adopt it, and I checked M1 against main myself.

Must fix in the next head:

  • M1 (must-fix): the skill says an item mounts the knowledge service and its store with no requires: ['knowledge']. That is true only for a source the stack ships in knowledgeSources, read at boot. It is false for a source authored at run time through Studio or MCP, the door the same paragraph names. Main's content/docs/ai/knowledge-rag.mdx § Turning it on says the token is for an app that ships none and authors its sources at run time. Teach both cases. Then fix the same wording in the changeset body and in the ratchet row comment.
  • S1 (should-fix): the name row and "one name is one source" teach the old identity. On main a source's slot is (package, name), and search_knowledge lists and takes the namespaced spelling for a package's source. A bare name still resolves while it is unambiguous.
  • S2 (should-fix): "rerank and hybrid weights are options of the store's plugin" names options that no shipped store plugin has. State the boundary without claiming the options exist.

Landing keyword. Fixes #37310 is right only for the head that also carries the amendment part (comment 7221575164). Until #37971 lands and that part follows on this branch, this head must not land under Fixes. If it has to land first, change the line to Part of #37310 and name the half that is left.

Also, without moving the contract:

  • The PR title still says the type gets a create seed. That is no longer true.
  • Verification item 2 in the body points at the wrong file for the KNOWN_UNSEEDED reason.
  • The record's nits N1 to N5 are optional.
  • Out of scope: skills/objectstack-project/references/platform-catalog.md also says knowledge mounts on requires only. That is worth one line in the same pass.

What holds:

The three fixes add text, so the ratchet row moves again in the delta.

Next: fix M1, S1 and S2, then a delta L2 (same reviewer) and a delta L1, then the seat for Tier H.

…me one needs requires; a source is identified by package and name

The section said any item mounts the knowledge service. Only a source the
stack ships in knowledgeSources does (stackItemCapabilities, mountedBy); an
app that ships none and authors sources at run time needs
requires: ['knowledge']. The platform catalog's Boot cell now says so for a
provider an item also mounts, and the skill ref is regenerated.

A source's identity is its package and name, and search_knowledge lists a
package's source as NAMESPACE-NAME. The closing note no longer says the
store plugins carry rerank or hybrid-weight options: no shipped store has
either setting. A new eval case asks for a run-time-authored source.

The token ratchet row moves 6639 -> 6695 by the measured remainder after
the duplicates were paid down.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants